import Mock from 'mockjs';

export default {
  'GET /api/admin/article/categories': Mock.mock({
    success: 1,
    message: '@paragraph',
    data: {
      'items|10': [
        {
          'id|+1': 1,
          name: '@cname',
        },
      ],
    },
  }),
  'POST /api/admin/article/category': Mock.mock({
    success: 1,
    message: '@paragraph',
  }),
  'DELETE /api/admin/article/category': Mock.mock({
    success: 1,
    message: '@paragraph',
  }),
  'GET /api/admin/articles': Mock.mock({
    success: 1,
    message: '@paragraph',
    data: {
      'items|10': [
        {
          'id|+1': 1,
          title: '@cparagraph',
          cate_name: '@cname',
          view_count: '@integer(1, 3000)',
          create_time: '@date',
        },
      ],
      total: '@integer(1, 3000)',
    },
  }),
};
